package org.locker.domain.bo;

import org.locker.domain.ManagerWithdraw;
import org.locker.common.mybatis.core.domain.BaseEntity;
import org.locker.common.core.validate.*;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 代理商提现记录业务对象 lk_manager_withdraw
 *
 * @author winnie
 * @date 2023-10-11
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = ManagerWithdraw.class, reverseConvertGenerate = false)
public class ManagerWithdrawBo extends BaseEntity {

    /**
     * 提现ID
     */
    @NotNull(message = "提现ID不能为空", groups = { EditGroup.class })
    private Long managerWithdrawId;

    /**
     * 管理员ID
     */
    @NotNull(message = "管理员ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long sysUserId;

    /**
     * 场地ID
     */
    @NotNull(message = "场地ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long positionId;

    /**
     * 提现单号
     */
    private String withdrawNo;

    /**
     * 提现金额
     */
    @NotNull(message = "提现金额不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal withdrawAmount;

    /**
     * 交易成功时间
     */
    private Date withdrawTime;

    /**
     * 状态：withdrawing 提现中,withdraw_success 提现成功,fail 失败,
     */
    @NotBlank(message = "状态：withdrawing 提现中,withdraw_success 提现成功,fail 失败,不能为空", groups = {EditGroup.class })
    private String withdrawStatus;

    /**
     * 备注
     */
    private String withdrawRemark;

    /**
     * 审核状态：wait 待审核,pass 通过，refuse 拒绝
     */
    @NotBlank(message = "审核状态：wait 待审核,pass 通过，refuse 拒绝不能为空", groups = {EditGroup.class })
    private String auditStatus;

    /**
     * 审核备注
     */
    @NotBlank(message = "审核备注不能为空", groups = {EditGroup.class })
    private String auditRemark;

    /**
     * 备注
     */
    private String remark;


}
